/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI.Multilang;

import GUI.Multilang.MultilanguageHelper;
import java.awt.Image;
import java.util.Locale;

/**
 *
 * @author TrongKhoa
 */
public class MyResources
{

    public static Locale _currentLocale;

    public MyResources(Locale currentLocale)
    {
        _currentLocale = currentLocale;
    }

    public static void SetLocale(Locale currentLocale)
    {
        _currentLocale = currentLocale;
    }

    public static String GetString(String key)
    {
        String result = "###";
        try
        {
            result = MultilanguageHelper.GetResource(_currentLocale, key);
        }
        catch (Exception e)
        {
        }
        return result;
    }

    public static Image GetImage(String path)
    {
        return null;
    }
    /*
     * private static void Reload(Locale currentLocale) { _currentLocale =
     * currentLocale; _fileStr = MultilanguageHelper.GetResource(_currentLocale,
     * "file"); _connectStr = MultilanguageHelper.GetResource(_currentLocale,
     * "connect"); _disconnectStr =
     * MultilanguageHelper.GetResource(_currentLocale, "disconnect"); _newStr =
     * MultilanguageHelper.GetResource(_currentLocale, "new"); _databaseStr =
     * MultilanguageHelper.GetResource(_currentLocale, "database"); _sqlQueryStr
     * = MultilanguageHelper.GetResource(_currentLocale, "sqlquery"); _openStr =
     * MultilanguageHelper.GetResource(_currentLocale, "open"); _exitStr =
     * MultilanguageHelper.GetResource(_currentLocale, "exit"); _languageStr =
     * MultilanguageHelper.GetResource(_currentLocale, "language"); _helpStr =
     * MultilanguageHelper.GetResource(_currentLocale, "help"); _aboutStr =
     * MultilanguageHelper.GetResource(_currentLocale, "about"); _toolBarStr =
     * MultilanguageHelper.GetResource(_currentLocale, "toolbar"); _newQueryStr
     * = MultilanguageHelper.GetResource(_currentLocale, "newquery");
     * _refreshStr = MultilanguageHelper.GetResource(_currentLocale, "refresh");
     * _executeStr = MultilanguageHelper.GetResource(_currentLocale, "execute");
     * _newDatabaseStr = MultilanguageHelper.GetResource(_currentLocale,
     * "newdatabase"); _attachStr =
     * MultilanguageHelper.GetResource(_currentLocale, "attachdatabase");
     * _deleteStr = MultilanguageHelper.GetResource(_currentLocale, "delete");
     * _newTableStr = MultilanguageHelper.GetResource(_currentLocale,
     * "newtable"); _editStr = MultilanguageHelper.GetResource(_currentLocale,
     * "edit"); _insertStr = MultilanguageHelper.GetResource(_currentLocale,
     * "insert"); _renameStr = MultilanguageHelper.GetResource(_currentLocale,
     * "rename"); _designStr = MultilanguageHelper.GetResource(_currentLocale,
     * "design"); _connecttoserverStr =
     * MultilanguageHelper.GetResource(_currentLocale, "connecttoserver");
     * _cancelStr = MultilanguageHelper.GetResource(_currentLocale, "cancel");
     * _serverpathStr = MultilanguageHelper.GetResource(_currentLocale,
     * "serverpath"); _usernameStr =
     * MultilanguageHelper.GetResource(_currentLocale, "username"); _passwordStr
     * = MultilanguageHelper.GetResource(_currentLocale, "password");
     * _tablenameStr = MultilanguageHelper.GetResource(_currentLocale,
     * "tablename"); _table1 = MultilanguageHelper.GetResource(_currentLocale,
     * "table1"); _savetable = MultilanguageHelper.GetResource(_currentLocale,
     * "savetable"); _addcolumn =
     * MultilanguageHelper.GetResource(_currentLocale, "addcolumn");
     * _setreferencekey = MultilanguageHelper.GetResource(_currentLocale,
     * "setreferencekey"); _deletecolumn =
     * MultilanguageHelper.GetResource(_currentLocale, "deletecolumn");
     * _deleterow = MultilanguageHelper.GetResource(_currentLocale,
     * "deleterow"); _saved = MultilanguageHelper.GetResource(_currentLocale,
     * "saved"); _addrow = MultilanguageHelper.GetResource(_currentLocale,
     * "addrow"); _errTableName =
     * MultilanguageHelper.GetResource(_currentLocale, "errTableName"); }
     */
}
